<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            height: 410px;
            width: 100%;
            display: grid;
            grid-template: repeat(2, 1fr)/ 2fr 1fr 1fr;
            grid-template-areas:
                "header sidebar recommend"
                "main sidebar recommend";
            gap: 10px;
        }

        .content {
            width: auto;
            border-radius: 10px;
            border: 1px solid grey;
        }

        .header {
            grid-area: header;
        }

        .sidebar {
            grid-area: sidebar;
        }

        .main {
            grid-area: main;
            color: #ffffff;
            background-color: #101727;
        }

        .recommend {
            grid-area: recommend;
        }
        @media screen and (max-width : 700px) {
            .box {
            height: 630px;
            width: 100%;
            display: grid;
            grid-template-rows: repeat(4,1fr);
            grid-template-columns: 1fr;
            grid-template-areas:
                "header "
                "main"
                "sidebar "
                "recommend";
            gap: 10px;
        }
        .content {
            width: auto;
            
           
        }
            
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="content header">头条区</div>
        <div class="content main">主内容</div>
        <div class="content sidebar">侧栏</div>
        <div class="content recommend">推荐</div>
    </div>
</body>

</html>